<?php $view->extend('::base.html.php') ?>
<?php $view['slots']->start('head') ?>
<?php foreach ($view['assetic']->javascripts(array('@VersalAdminBundle/Resources/public/js/crearUsuario.js')) as $url): ?>
    <script type="text/javascript" src="<?php echo $view->escape($url) ?>"></script>	
<?php endforeach; ?>
<?php $view['slots']->stop() ?>
<?php echo $view['form']->start($form) ?>
 
    <?php echo $view['form']->errors($form, array(
    'action' => $view['router']->generate('versal_admin_crear_usuario'),
    'method' => 'POST')) ?>
 
    <div>
        <?php echo $view['form']->label($form['username'], 'Username') ?>        
        <?php echo $view['form']->widget($form['username']) ?>
    </div>
 
    <div>
        <?php echo $view['form']->label($form['nombre'], 'Nombre') ?>        
        <?php echo $view['form']->widget($form['nombre']) ?>
    </div>
    <div>
        <?php echo $view['form']->label( $form['apePaterno'], 'Apellido Paterno') ?>      
        <?php echo $view['form']->widget($form['apePaterno']) ?>
    </div>
    <div>
        <?php echo $view['form']->label( $form['apeMaterno'], 'Apellido Materno') ?>        
        <?php echo $view['form']->widget($form['apeMaterno']) ?>
    </div>
    <div>
        <?php echo $view['form']->label( $form['email'], 'E-Mail') ?>        
        <?php echo $view['form']->widget($form['email']) ?>
    </div>
    <div>
        <?php echo $view['form']->label( $form['direccion'], 'Direccion') ?>       
        <?php echo $view['form']->widget($form['direccion']) ?>
    </div>    

    <div>
        <?php echo $view['form']->label( $form['numCalle'], 'Numero de Calle') ?>
        <?php echo $view['form']->widget($form['numCalle']) ?>
    </div>    
    <div>
        <?php echo $view['form']->label( $form['region'], 'Region') ?>        
        <?php echo $view['form']->widget($form['region']) ?>
    </div>    
    <div>
        <?php echo $view['form']->label( $form['telFijo'], 'Telefono Fijo') ?>        
        <?php echo $view['form']->widget($form['telFijo']) ?>
    </div>    
    <div>
        <?php echo $view['form']->label( $form['telMovil'], 'Telefono Movil') ?>        
        <?php echo $view['form']->widget($form['telMovil']) ?>
    </div>   
    <div>
        <?php echo $view['form']->widget($form['Grabar'], array('id'=>'btnGrabar')) ?>
        <?php echo $view['form']->widget($form['Cancelar']) ?>
    </div>
 
<?php echo $view['form']->end($form) ?>
<div id="errores">
    <?php echo $view['form']->errors($form['username']) ?>
    <?php echo $view['form']->errors($form['nombre']) ?>
    <?php echo $view['form']->errors($form['apeMaterno']) ?>
    <?php echo $view['form']->errors($form['email']) ?>
    <?php echo $view['form']->errors($form['direccion']) ?>
    <?php echo $view['form']->errors($form['numCalle']) ?>
    <?php //echo $view['form']->errors($form['region']) ?>
    <?php echo $view['form']->errors($form['telFijo']) ?>    
    <?php echo $view['form']->errors($form['apePaterno']) ?>
    <?php echo $view['form']->errors($form['telMovil']) ?>      
</div>
